import { postRequest, getRequest } from '/@/lib/axios';


  //质量日报 情况说明 填报
  export const listApi = {
    page ( param: any, config?: any )
    {
      return postRequest( '/eapi/quality/getQualitydailyPage', param, config );
    },
    insert ( param: any, config?: any )
    {
      return postRequest( '/eapi/quality/qualitydailyadd', param, config );
    },
    edit ( param: any, config?: any )
    {
      return postRequest( '/eapi/quality/qualitydailyupdate', param, config );
    },
    delete ( param: any, config?: any )
    {
      return postRequest( '/eapi/quality/qualitydailydel', param, config );
    }
  }

  //质量日报 质量问题情况 填报
  export const listApiqualityproblem = {
    page ( param: any, config?: any )
    {
      return postRequest( '/eapi/qualityquestion/getQualitydailyQuestionPage', param, config );
    },
    insert ( param: any, config?: any )
    {
      return postRequest( '/eapi/qualityquestion/qualitydailyQuestionadd', param, config );
    },
    edit ( param: any, config?: any )
    {
      return postRequest( '/eapi/qualityquestion/qualitydailyQuestionupdate', param, config );
    },
    delete ( param: any, config?: any )
    {
      return postRequest( '/eapi/qualityquestion/qualitydailyQuestiondel', param, config );
    },

    questionRep ( param: any, config?: any )
    {
      return postRequest( '/eapi/qualityquestion/questionRep', param, config );
    },

    plankRep(param: any, config?: any){
      return postRequest( '/eapi/qualityDailyPlank/plankRep', param, config );
    },

    mainRep(param: any, config?: any){
      return postRequest( '/eapi/targetcomplete/mainRep', param, config );
    },

    materialRep(param: any, config?: any){
      return postRequest( '/eapi/qualityDailyMaterial/materialRep', param, config );
    },

    mainLine(param: any, config?: any){
      return postRequest( '/eapi/targetcomplete/mainLineRep', param, config );
    },

    questionBar(param: any, config?: any){
      return postRequest( '/eapi/qualityquestion/questionBarRep', param, config );
    },

    plankLine(param: any, config?: any){
      return postRequest( '/eapi/qualityDailyPlank/plankLineRep', param, config );
    },

    materialPie(param: any, config?: any){
      return postRequest( '/eapi/qualityDailyMaterial/materialPieRep', param, config );
    },



  }

  export const listApiMainCompletion = {
    page ( param: any, config?: any )
    {
      return postRequest( '/eapi/targetcomplete/getTargetcompletePage', param, config );
    },
    insert ( param: any, config?: any )
    {
      return postRequest( '/eapi/targetcomplete/targetcompleteadd', param, config );
    },
    edit ( param: any, config?: any )
    {
      return postRequest( '/eapi/targetcomplete/targetcompleteupdate', param, config );
    },
    delete ( param: any, config?: any )
    {
      return postRequest( '/eapi/targetcomplete/targetcompletedel', param, config );
    }
  }